<template>
  
 <div :class="direction == 'vertical' ? 'wrap wrap_direction' : 'wrap'">
    <div class="wrap_header">
      <slot name="header"></slot>
    </div>
    <div class="wrap_main">
      <slot></slot>
    </div>
    <div class="wrap_footer">
      <slot name="footer"></slot>
    </div>
  </div>
  
</template>

<script>
export default {
name:"Coll",
props: {
    direction: {
        type: String, // 类型
        default:"vertical"
    },
},
 methods: {
     
 },
}
</script>

<style scoped lang="scss">
.wrap {
  display: flex;
  height: 100vh;
  .wrap_header {
    height: 30px;
    text-align: center;
    h3 {
      margin: 0px;
      font-size: 20px;
      line-height: 30px;
    }
  }
  .wrap_main {
    height: 557px ;
  }
  .wrap_footer {
    height: 50px;
    
  }
}
.wrap_direction {
  flex-direction: column;
}



</style>